<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>用户登陆</title>
</head>
<body>
	<h3 align="center">用户登陆</h3>
	<div align="center" th:text="${msg}"></div>
	<form action="userlogin" method="post" target="_top">
	<table align="center">
		<tr>
			<td>用户名:</td><td>
			<input name="uname" required pattern="\w{4,50}"  th:value="${param.uname==null?T(com.etc.controller.UserController).getCookieValue('uname',#httpServletRequest):param.uname}">
		</td>
		</tr>
		<tr>
			<td>密码:</td><td><input required pattern="\w{4,50}"  name="password" type="password" th:value="${param.password==null?T(com.etc.controller.UserController).getCookieValue('password',#httpServletRequest):param.password}"></td>
		</tr>
		<tr>
			<td>cookie:</td><td>
				<label>1天<input name="age" type="radio" value="1"></label>
				<label>7天<input name="age" type="radio" value="7"></label>
				<label>30天<input name="age" type="radio" value="30"></label>
			</td>
		</tr>
		<tr>
			<td><input type="submit" value="登录"></td><td><input type="reset" value="重置"></td>
		</tr>
	</table>
	</form>
</body>
</html>